﻿using SuperMoney.Datas;
using SuperMoney.Datas.DbModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SuperMoney.Services
{
    /// <summary>
    /// 商品服务类
    /// </summary>
    public class CommodityService
    {
        public static readonly CommodityService Instance;
        static CommodityService()
        {
            Instance = new CommodityService();
        }

        /// <summary>
        /// 获取某个商品。
        /// </summary>
        /// <param name="id">商品编号。</param>
        /// <returns></returns>
        public Commodity Get(long id)
        {
            return CommodityDbService.Instance.Get(id);
        }
    }
}
